const mongoose = require('mongoose');
const Schema = mongoose.Schema;

/***
 * mode:排序类型， true：跳远等成绩越大得分越高；false：田径类的用时越少得到越高
 */
const EventSchema = new Schema(
    {
        title: { type: String },
        mode: { type: Boolean },
        gender: { type: String },
        ranking: { type: Number },
        name: { type: String },
        college: { type: String },
        result: { type: String },//项目成绩
        score: { type: Number },//得分
    }
);

module.exports = mongoose.model('Event', EventSchema);